#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
bool check(int num){
	
	if(num<2){
		
		return false;
	}
	for(int i=2;i<=sqrt(num);++i){
		if(num%i==0){
			
			return false;
		}
	}
	
	return true;
}
int main() {
	
	string str;
	cin>>str;
	vector<int> vecCnt(26);
	for(int i=0;i<static_cast<int>(str.size());++i){
		int t=str[i]-'a';
		++vecCnt[t];
	}
	int maxn=0,minn=110;
	for(int i=0;i<26;++i){
		if(vecCnt[i]==0){
			continue;
		}
		maxn=max(maxn,vecCnt[i]);
		minn=min(minn,vecCnt[i]);
	}
	if(check(maxn-minn)){
		cout<<"Lucky Word"<<endl;
		cout<<maxn-minn;
	}
	else{
		cout<<"No Answer"<<endl;
		cout<<0;
	}
	
	return 0;
}
